package com.suo.ADT;

public class Main {
    public static void main(String[] args) {
        BinarySearchTree binarySearchTree = new BinarySearchTree();
        int[] nums = new int[]{1,5,8,9,2,3,555,777,6,99,0,-3};
        for (int i : nums) {
            binarySearchTree.insert(i);
        }
        binarySearchTree.printTree();
        int[] deletes = new int[] {1,-3,5,555,0,0,0,0};
        for (int i : deletes) {
            binarySearchTree.remove(i);
            binarySearchTree.printTree();
        }
    }
}
